package main

func opensslAes256cbcNoSaltMd5(key string) (aesKey, iv []byte, err error) {
	keyBytes := []byte(key)
	hash1, err := getMd5Bytes(keyBytes)
	if err != nil {
		return
	}
	hash2, err := getMd5Bytes(append(hash1, keyBytes...))
	if err != nil {
		return
	}
	hash3, err := getMd5Bytes(append(hash2, keyBytes...))
	if err != nil {
		return
	}

	aesKey = append(hash1, hash2...)
	iv = hash3
	return
}
